﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TruckerPrice.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Tìm Giá Vận Tải Bộ </title>
    <script src="assets/js/Admin_002.js" type="text/javascript"></script>
    <script src="assets/js/Admin.js" type="text/javascript"></script>
    <script src="assets/js/Validation.js" type="text/javascript"></script>
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <%--<script type="text/javascript"
		src="http://code.jquery.com/jquery-1.5.2.min.js"></script>--%>
    <script src="assets/jquery/jquery-ui.min.js" type="text/javascript"></script>
    <script src="assets/jquery/jquery.dialog.extra.js" type="text/javascript"></script>
    <script type='text/javascript' src="assets/js/jquery.bgiframe.min.js"></script>
    <script type='text/javascript' src="assets/js/jquery.ajaxQueue.js"></script>
    <script type='text/javascript' src="assets/js/thickbox-compressed.js"></script>
    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>
    <script type='text/javascript' src="assets/js/DomesticPOR.js"></script>
    <script type='text/javascript' src="Assets/js/jquery-custom-1.0.0.js?v=0611"></script>
    <script type='text/javascript' src="Assets/js/zoom.js"></script>
    <script type='text/javascript' src="assets/js/Carrs.js"></script>
    <script type='text/javascript' src="Assets/js/UpdateTruckerPrice.js"></script>
    <script type='text/javascript' src="Assets/js/encoder.js"></script>
    <script type='text/javascript' src="Assets/jquery/jquery.cookie.js"></script>
    <link href="assets/jquery/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/thickbox.css" />
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="Assets/css/EditTableCell.css" type="text/css" />
    <link rel="stylesheet" href="Assets/css/zoom.css" type="text/css" />
    <link rel="stylesheet" type="text/css" href="assets/css/datepicker.css" />
    <script type='text/javascript' src="assets/js/jquery.ui.datepicker.js"></script>
    <script type="text/javascript" language="javascript">
        var nPermissions = '<%=nPermissions %>';
        function getUrlVars() {
            var vars = {};
            var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
                vars[key] = value;
            });
            return vars;
        }
        function doDelete(strID, strName) {
            if (confirm('Bạn có thực sự muốn xóa ' + strName + '?')) {
                var vnpage = getUrlVars()['page_number'];
                if (vnpage)
                    window.location.href = "TruckerPrice.aspx?action=delete&ID=" + strID + "&page_number=" + vnpage;
                else
                    window.location.href = "TruckerPrice.aspx?action=delete&ID=" + strID;
            }
        }
        function doPublic(strID, strName) {
            //if (confirm('Bạn có thực sự muốn public ' + strName + '?')) {
            var vnpage = getUrlVars()['page_number'];
            if (vnpage)
                window.location.href = "TruckerPrice.aspx?action=public&ID=" + strID + "&page_number=" + vnpage;
            else
                window.location.href = "TruckerPrice.aspx?action=public&ID=" + strID;
            //}
        }
        $().ready(function () {
            $('#txtEX').focus().autocomplete(por);
            //Select Text when focus textboxx            
            $("input[type='text']").click(function () {
                $(this).select();
            });
        });
    </script>
    <style type="text/css">
        input[type=text]
        {
            border-radius: 7px;
            border: none;
            line-height: 22px;
            margin: 5px;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <h2>
                PRICING TRUCK
            </h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server" autocomplete="off">
                <div zoomable="true">
                    <div style="height: auto; padding-top: 7px;">
                        <span style="background: #e5e5e5 url('/assets/images/bg-content-box.gif') top left repeat-x;
                            padding: 10px; border-radius: 7px; margin-right: 20px;">
                            <asp:TextBox ID="txtEX" runat="server" placeholder="FACTORY"></asp:TextBox>
                            <asp:DropDownList ID="ddTO" runat="server" placeholder="TO">
                            </asp:DropDownList>
                            <asp:Button ID="btnSearh" Text="Search" runat="server" OnClick="btnSearch_Click"
                                CssClass="button" />
                        </span>
                        <input type="button" style="float: right; margin: 0px 10px;" class="button" value="Edit"
                            id="btnsave" runat="server" />
                        <asp:Button ID="btnInit" CssClass="button" Style="float: right; padding: 0px 20px;"
                            runat="server" TabIndex="15" Text="Save" OnClick="btnSave_Click" />
                        <span style="font-weight: bold; text-align: right; float: right; padding: 5px 20px;">
                            ĐƠN VỊ TÍNH : 1000 VND</span>
                        <div class="clear">
                        </div>
                        <asp:Label ID="lblerror" CssClass="msg-error" runat="server" Style="display: inline-block;
                            margin: 5px;"></asp:Label><br />
                    </div>
                    <div class="content-box-header">
                        <h3>
                            <%=Session["LocationInfo"].ToString() %>
                        </h3>
                        <div style="padding-left: 5px; padding-top: 5px;">
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div autofit="true" style="">
                        <div id="divContent">
                            <fieldset>
                                <asp:Repeater ID="rptData" runat="server">
                                    <ItemTemplate>
                                        <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'"
                                            truckerpriceid='<%#Eval("ID") %>' class="tr_clone">
                                            <td align="center" title="Index" width="28px" style="min-width: 28px; max-width: 28px;
                                                overflow: hidden;">
                                                <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                            </td>
                                            <td editable="false" width="120px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="BizName" completesource="lregion" title='<%#GetCellTitle(Eval("BizName")) %>'
                                                class='<%#GetCellClass(Eval("BizName"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "BizName"))%>
                                            </td>
                                            <td editable="true" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="Cont20" title='<%#GetCellTitle(Eval("Cont20")) %>' class='<%#GetCellClass(Eval("Cont20"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Cont20"))%>
                                            </td>
                                            <td editable="false" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="VndKm20" title='<%#GetCellTitle(Eval("VndKm20")) %>' class='<%#GetCellClassVndKms(Eval("VndKm20"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "VndKm20"))%>
                                            </td>
                                            <td editable="true" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="Tons20" title='<%#GetCellTitle(Eval("Tons20")) %>' class='<%#GetCellClass(Eval("Tons20"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Tons20"))%>
                                            </td>
                                            <td editable="false" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="DoPrice20" title='<%#GetCellTitle(Eval("DoPrice20")) %>' class='<%#GetCellClass(Eval("DoPrice20"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "DoPrice20"))%>
                                            </td>
                                            <td editable="true" style="min-width: 150px; overflow: hidden;" code="Note20" title='<%#GetCellTitle(Eval("Note20")) %>'
                                                class='<%#GetCellClass(Eval("Note20"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Note20"))%>
                                            </td>
                                            <td editable="true" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="Cont40" title='<%#GetCellTitle(Eval("Cont40")) %>' class='<%#GetCellClass(Eval("Cont40"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Cont40"))%>
                                            </td>
                                            <td editable="false" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="VndKm40" title='<%#GetCellTitle(Eval("VndKm40")) %>' class='<%#GetCellClassVndKms(Eval("VndKm40"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "VndKm40"))%>
                                            </td>
                                            <td editable="true" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="Tons40" title='<%#GetCellTitle(Eval("Tons40")) %>' class='<%#GetCellClass(Eval("Tons40"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Tons40"))%>
                                            </td>
                                            <td editable="false" width="70px" style="min-width: 70px; max-width: 70px; overflow: hidden;"
                                                code="DoPrice40" title='<%#GetCellTitle(Eval("DoPrice40")) %>' class='<%#GetCellClass(Eval("DoPrice40"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "DoPrice40"))%>
                                            </td>
                                            <td editable="true" style="min-width: 150px; overflow: hidden;" code="Note40" title='<%#GetCellTitle(Eval("Note40")) %>'
                                                class='<%#GetCellClass(Eval("Note40"))%>'>
                                                <%#GetCellValue(DataBinder.Eval(Container.DataItem, "Note40"))%>
                                            </td>
                                            <%if ((Session["TruckerPrice"] != null) && (int.Parse(Session["TruckerPrice"].ToString()) >= 3))
                                                  {%>
                                            <td align="center">
                                                <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                            </td>
                                            <%} %>
                                        </tr>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div autofit="true" style="">
                                            <table editcellcontent="true" cellspacing="0" cellpadding="0" width="auto" border="0"
                                                class="adminlist" resizeable="true">
                                                <thead>
                                                    <tr>
                                                        <th align="center">
                                                            INDEX
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            TRUCKER
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            20'
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            Vnd/Km
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            TONS
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            DO PRICE
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            NOTES
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            40'
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            Vnd/Km
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            TONS
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            DO PRICE
                                                        </th>
                                                        <th align="center" class="resizeable">
                                                            NOTES
                                                        </th>
                                                        <%if ((Session["TruckerPrice"] != null) && (int.Parse(Session["TruckerPrice"].ToString()) >= 3))
                                                              {%>
                                                        <th align="center" width="30px">
                                                            #
                                                        </th>
                                                        <%} %>
                                                    </tr>
                                                </thead>
                                    </HeaderTemplate>
                                    <FooterTemplate>
                                        <tr id="trshowmore" style="dispalay: none;">
                                            <td colspan="23" style="text-align: center;">
                                            </td>
                                        </tr>
                                        </TABLE> </div>
                                    </FooterTemplate>
                                </asp:Repeater>
                            </fieldset>
                        </div>
                        <div class="clear">
                        </div>
                        <div id="footer">
                            <%=strPager%>
                        </div>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
    <span id="ruler" style="visibility: hiddens; white-space: nowrap"></span>
</body>
</html>
